import request from './request'
import { order } from '@/model/orderModel'

export const insertOrder = (order: order[]) => {
  return request({
    url: 'order/add',
    method: 'POST',
    data: { order }
  })
}

export const cancelOrder = (orderNum: string) => {
  return request({
    url: 'order/cancel',
    method: 'PUT',
    params: {
      orderNum
    }
  })
}
